package com.woniuxy.productmodel.form;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

/**
 * 新增私教产品参数对象
 */
@ApiModel(value = "新增私教产品参数对象")
@Data
public class AddAlongCourseProductForm {

    /**
     * 教练ID
     */
    @ApiModelProperty(value = "教练Id")
    @NotNull(message = "教练id为正整数")
    @Min(value = 1)
    private Integer coachId;

    /**
     * 产品简介
     */
    @ApiModelProperty(value = "产品简介")
    @NotBlank(message = "产品简介不为空")
    private String coachRemark;

    /**
     * 课程使用次数
     */
    @ApiModelProperty(value = "私教课使用次数")
    @NotNull(message = "私教课使用次数为正整数")
    @Min(value = 1)
    private Integer coachProductCount;

    /**
     * 课程类型ID
     */
    @ApiModelProperty(value = "课程类别Id")
    @NotNull(message = "课程类别id为正整数")
    @Min(value = 1)
    private Integer courseTypeId;

    /**
     * 每次课课程时长
     */
    @ApiModelProperty(value = "每次上课课程时长（小时）")
    @NotNull(message = "每次课课时为正整数（小时）")
    @Min(value = 1)
    private Integer coachDuration;

    /**
     * 产品价格
     */
    @ApiModelProperty(value = "产品价格")
    @NotNull(message = "价格为正数")
    @Min(value = 1)
    private BigDecimal coachProductPrice;
}
